﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;

namespace PaperRenderingInterfaces
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class)]
    public class PaperRenderAttribute : ExportAttribute
    {
        /// <summary>
        /// Create the render meta-data.
        /// </summary>
        /// <param name="renderName">The name of the rendering object</param>
        public PaperRenderAttribute(string renderName)
            : base(typeof(IPaperRender))
        {
            RenderEngineName = renderName;
        }

        public PaperRenderAttribute(IDictionary<string, object> bogus)
        {
            RenderEngineName = bogus["RenderEngineName"] as string;
        }

        public string RenderEngineName { get; set; }
    }
}
